package lion.framework.core.task.cluster;

import java.util.List;

import lion.dev.lang.MapJ;
import lion.framework.core.task.ISchedule;

public interface ClusterInstance {

	public void updateStatus();

	public String getId();

	boolean addSchedule(ISchedule schedule);

	List<MapJ> findOrphanSchedules();

	public boolean isScheduleAssigned(ISchedule schedule);

	public boolean getLock(String lockName);

	public void releaseLock(String lockName);
}
